<template>
	<view class="notice">
		<view class="noticeText">
			<uni-notice-bar 
				showIcon="true" 
				scrollable="true" 
				single="true" 
				:text="message" 
				:backgroundColor="background" 
				color="#000"></uni-notice-bar>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'Notices',
		props: {
			message: {
				type: String,
				default() {
					return ''
				}
			},
			background: {
				type: String,
				default() {
					return ''
				}
			}
		}
	}
</script>

<style scoped>
	.noticeText {
		width: 93%;
		/* height: 72.72rpx; */
		background-color: #FFFFFF;
		margin: 14.54rpx auto;
		border-radius: 14.54rpx;
		font-size: 25.45rpx;
	}
</style>
